added Feb 2001 SDK
[windows-sources.git] / shared source / wpf / src / host / inc / shimdllinterface.hxx
blobff719e1d25cde77d7751e2cc75b887886e70b17d
1 //******************************************************************************
2 //
3 // File: ShimDllInterface.hxx
4 //
5 // Activation parameters to be passed from the version-independent hosting shim
6 // exe to the version-specific hosting DLL.
7 //
8 // History:
9 //
10 // 2005-05-19: [....] - Created
11 // 2007/09/20: [....] Ported Windows->DevDiv. See SourcesHistory.txt.
13 // Copyright (C) by Microsoft Corporation. All rights reserved.
14 //
15 //******************************************************************************
17 #ifndef SHIMDLLINTERFACE_HXX
18 #define SHIMDLLINTERFACE_HXX
20 struct ActivateParameters
22 // The size of this structure. For version control. The sizes MUST be unique across versions.
23 DWORD dwSize;
25 // The URI of the application to be deployed or the document to be opened.
26 LPCWSTR pswzUri;
28 // The ApplicationIdentity of the application to be deployed. May not refer
29 // to an application that has actually been deployed yet.
30 LPCWSTR pswzApplicationIdentity;
32 // The RM manifest to use (documents only)
33 LPCWSTR pswzDocumentRmManifest;
35 MimeType mime;
36 IStream* pHistoryStream;
37 IStream* pDocumentStream;
38 HANDLE hDownloadCompletedEvent;
39 BOOL isDebug;
40 LPWSTR pswzDebugSecurityZoneURL;
42 IPersistHistory* pPersistHistory;
43 HANDLE hNoHostTimer;
45 // The outer object for COM aggregation purposes
46 // This will be a CHostShim instance; COleDocument will use it for AddRef and Release calls.
47 LPUNKNOWN pOuterObject;
49 // -->
50 // Added for v3.5 SP1 servicing (including for Windows 7) and v4.
51 // Note that a version of PresentationHostDll will normally never be invoked with this extra parameter
52 // if it doesn't support it, because the shim invokes the latest PHDLL, and initially they are updated
53 // together (for the above releases).
54 // ...Oops, except it turned out we had to deal with the abnormal case of PH v4 finding only an older
55 // PHDLL v3 that doesn't support the new feature. See fallback in CHostShim::Execute().
57 // Set when the shim encountered an error and wants the DLL to display it (instead of running the app).
58 // We have to fully activate the DocObject to be able to show the error page...
59 LPCWSTR pswzErrorMessageToDisplay;
61 #endif // SHIMDLLINTERFACE_HXX